package com.yiqingjing.model;

import android.content.SharedPreferences;
import android.net.Uri;

public class Sence {
	private int alarm;
	private int media;
	private int gprs;
	private int gps;
	private int wifi;
	private int wifihot;
	private int ring;
	private int ringmode;
	private int lightmode;
	private int lightness;
	private int bluetooth;
	private int latitude;
	private int longitude;
	private int hour;
	private int minute;
	private int auto_rotate;
	private Uri ringUri;
	
	public Sence(SharedPreferences preferences){
		alarm = preferences.getInt("alarm", 3);
		media = preferences.getInt("media", 3);
		ring = preferences.getInt("ring", 3);
		ringmode = preferences.getInt("ringmode", 0);
		lightmode = preferences.getInt("lightmode", 0);
		lightness = preferences.getInt("lightness", 127);
		auto_rotate = preferences.getInt("auto_rotate", 0);
		wifi = preferences.getInt("wifi", 0);
		wifihot = preferences.getInt("wifihot", 0);
		gprs = preferences.getInt("gprs", 0);
		gps = preferences.getInt("gps", 0);
		bluetooth = preferences.getInt("bluetooth", 0);
		ringUri = Uri.parse(preferences.getString("ringuri", null));
	}
	
	public Uri getRingUri() {
		return ringUri;
	}

	public void setRingUri(Uri ringUri) {
		this.ringUri = ringUri;
	}

	public int getAlarm() {
		return alarm;
	}
	public void setAlarm(int alarm) {
		this.alarm = alarm;
	}
	public int getMedia() {
		return media;
	}
	public void setMedia(int media) {
		this.media = media;
	}
	public int getGprs() {
		return gprs;
	}
	public void setGprs(int gprs) {
		this.gprs = gprs;
	}
	public int getGps() {
		return gps;
	}
	public void setGps(int gps) {
		this.gps = gps;
	}
	public int getWifi() {
		return wifi;
	}
	public void setWifi(int wifi) {
		this.wifi = wifi;
	}
	public int getWifihot() {
		return wifihot;
	}
	public void setWifihot(int wifihot) {
		this.wifihot = wifihot;
	}
	public int getRing() {
		return ring;
	}
	public void setRing(int ring) {
		this.ring = ring;
	}
	public int getRingmode() {
		return ringmode;
	}
	public void setRingmode(int ringmode) {
		this.ringmode = ringmode;
	}
	public int getLightmode() {
		return lightmode;
	}
	public void setLightmode(int lightmode) {
		this.lightmode = lightmode;
	}
	public int getLightness() {
		return lightness;
	}
	public void setLightness(int lightness) {
		this.lightness = lightness;
	}
	public int getBluetooth() {
		return bluetooth;
	}
	public void setBluetooth(int bluetooth) {
		this.bluetooth = bluetooth;
	}
	public int getLatitude() {
		return latitude;
	}
	public void setLatitude(int latitude) {
		this.latitude = latitude;
	}
	public int getLongitude() {
		return longitude;
	}
	public void setLongitude(int longitude) {
		this.longitude = longitude;
	}
	public int getHour() {
		return hour;
	}
	public void setHour(int hour) {
		this.hour = hour;
	}
	public int getMinute() {
		return minute;
	}
	public void setMinute(int minute) {
		this.minute = minute;
	}

	public int getAuto_rotate() {
		return auto_rotate;
	}

	public void setAuto_rotate(int auto_rotate) {
		this.auto_rotate = auto_rotate;
	}
	
}
